package com.javayh.service.impl;

import com.javayh.bean.UserAndRoleVo;
import com.javayh.dao.UserDao;
import com.javayh.entity.User;
import com.javayh.service.UserSrevice;
import io.swagger.annotations.ApiImplicitParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Dylan Yang
 * @Title: UserServiceImpl
 * @ProjectName lucky
 * @Description: TODO
 * @date 2018/10/215:59
 */
@Service
public class UserServiceImpl implements UserSrevice {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> queryUsers() {
        return userDao.queryUsers();
    }

    @Override
    public List<UserAndRoleVo> queryUserAndRoleAll() {
        return userDao.queryUserAndRoleAll();
    }

    @Override
    public User findByName(String nickName) {
        return userDao.findByName(nickName);
    }


}

